import {HttpClient} from '@angular/common/http';
import {Injectable} from '@angular/core';
import {Observable} from "rxjs/Observable";

import "rxjs/add/observable/of";



@Injectable()
export class ClientRenwalDetailProvider {

    constructor(public http: HttpClient) {
    }

    /**
     * 获取续期详情
     * @returns {any}
     */
    getRenewalDetail(notLoading = 0,id,days): Observable<any> {

        return this.http.get(`/policy/v1/policyRenewalList`,{params:{
            'not-loading': '' + notLoading,
            "id":''+id,
            'type':''+days
        }});
        //  return Observable.of(this.data);
    }



}
